﻿using System.IO;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Common
{
    /// <summary>
    /// 下载文件信息传输模型
    /// </summary>
    [SuppressSniffer]
    public class DownloadFileDto
    {
        /// <summary>
        /// 文件流
        /// </summary>
        public Stream fileStream { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string contentType { get; set; }

        /// <summary>
        /// 下载文件名
        /// </summary>
        public string fileDownloadName { get; set; }

        /// <summary>
        /// 断点续传
        /// </summary>
        public bool breakpointResume { get; set; } = false;

        /// <summary>
        /// 文件存储存在目录
        /// </summary>
        public string storagePath { get; set; }
    }
}
